package com.li.mapper;

import com.github.pagehelper.Page;
import com.li.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderMapper {

    //通过条件查询
    List<Order> findByCondition(Order order);

    //新增
    void add(Order order);

    //通过id查询体检信息
    Map findById(Integer id);

    //                    todayOrderNumber :0,
    //                    todayVisitsNumber :0,
    //                    thisWeekOrderNumber :0,
    //                    thisWeekVisitsNumber :0,
    //                    thisMonthOrderNumber :0,
    //                    thisMonthVisitsNumber :0,
    Integer getOrderByDate(String date);
    Integer getVisitsCountByDate(String date);
    Integer getOrderCountByAfterDate(String date);
    Integer getVisitsCountByAfterDate(String date);

    List<Map> getHotSetmeal();//获取热门套餐取前四

    Page<Map> findOrders(String queryString);

    void deleteOrderById(Integer id);


}
